package ctwing

const SubscribeMessageTypeDeviceOnlineOfflineReport = "deviceOnlineOfflineReport"

// 设备上下线
type SubscribeMessageDeviceOnlineOfflineReport struct {
	SubscribeMessageCommon
	EventType uint8 `json:"eventType"` // 上下线状态
	Timestamp int64 `json:"timestamp"` // 时间戳
}

// 上下线状态
const (
	SubscribeMessageDeviceStatusOnline  = uint8(1) // 上线
	SubscribeMessageDeviceStatusOffline = uint8(0) // 下线
)
